home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 65 6e 67 | 2e 63 6f 6e 76 65 78 2e |news.eng|.convex.|
|00000030| 63 6f 6d 21 61 72 63 6f | 21 75 73 65 6e 65 74 0a |com!arco|!usenet.|
|00000040| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 4c 65 61 63 |From: Br|ian Leac|
|00000050| 68 20 3c 6c 61 73 62 66 | 6c 40 61 61 69 2e 61 72 |h <lasbf|l@aai.ar|
|00000060| 63 6f 2e 63 6f 6d 3e 0a | 53 75 62 6a 65 63 74 3a |co.com>.|Subject:|
|00000070| 20 52 65 3a 20 65 78 69 | 74 28 29 20 61 6e 64 20 | Re: exi|t() and |
|00000080| 66 6c 75 73 68 69 6e 67 | 20 64 61 74 61 20 74 6f |flushing| data to|
|00000090| 20 6f 66 73 74 72 65 61 | 6d 20 66 69 6c 65 73 3f | ofstrea|m files?|
|000000a0| 0a 58 2d 4e 6e 74 70 2d | 50 6f 73 74 69 6e 67 2d |.X-Nntp-|Posting-|
|000000b0| 48 6f 73 74 3a 20 31 33 | 36 2e 32 32 36 2e 31 31 |Host: 13|6.226.11|
|000000c0| 36 2e 31 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |6.1.Cont|ent-Type|
|000000d0| 3a 20 74 65 78 74 2f 70 | 6c 61 69 6e 3b 20 63 68 |: text/p|lain; ch|
|000000e0| 61 72 73 65 74 3d 75 73 | 2d 61 73 63 69 69 0a 54 |arset=us|-ascii.T|
|000000f0| 6f 3a 20 4e 61 73 73 65 | 72 20 41 62 62 61 73 69 |o: Nasse|r Abbasi|
|00000100| 20 3c 6e 61 73 73 65 72 | 40 61 70 6c 64 62 69 6f | <nasser|@apldbio|
|00000110| 2e 63 6f 6d 3e 0a 4d 65 | 73 73 61 67 65 2d 49 44 |.com>.Me|ssage-ID|
|00000120| 3a 20 3c 33 31 35 43 38 | 41 45 31 2e 32 30 38 45 |: <315C8|AE1.208E|
|00000130| 40 61 61 69 2e 61 72 63 | 6f 2e 63 6f 6d 3e 0a 53 |@aai.arc|o.com>.S|
|00000140| 65 6e 64 65 72 3a 20 75 | 73 65 6e 65 74 40 6e 65 |ender: u|senet@ne|
|00000150| 77 73 2e 61 72 63 6f 2e | 63 6f 6d 0a 43 6f 6e 74 |ws.arco.|com.Cont|
|00000160| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|00000170| 6f 64 69 6e 67 3a 20 37 | 62 69 74 0a 4f 72 67 61 |oding: 7|bit.Orga|
|00000180| 6e 69 7a 61 74 69 6f 6e | 3a 20 41 52 43 4f 20 41 |nization|: ARCO A|
|00000190| 6c 61 73 6b 61 20 49 6e | 63 2e 0a 52 65 66 65 72 |laska In|c..Refer|
|000001a0| 65 6e 63 65 73 3a 20 3c | 33 31 35 38 34 46 31 38 |ences: <|31584F18|
|000001b0| 2e 32 39 42 32 40 61 70 | 6c 64 62 69 6f 2e 63 6f |.29B2@ap|ldbio.co|
|000001c0| 6d 3e 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |m>.Mime-|Version:|
|000001d0| 20 31 2e 30 0a 44 61 74 | 65 3a 20 53 61 74 2c 20 | 1.0.Dat|e: Sat, |
|000001e0| 33 30 20 4d 61 72 20 31 | 39 39 36 20 30 31 3a 31 |30 Mar 1|996 01:1|
|000001f0| 34 3a 30 39 20 47 4d 54 | 0a 58 2d 4d 61 69 6c 65 |4:09 GMT|.X-Maile|
|00000200| 72 3a 20 4d 6f 7a 69 6c | 6c 61 20 32 2e 30 20 28 |r: Mozil|la 2.0 (|
|00000210| 58 31 31 3b 20 49 3b 20 | 48 50 2d 55 58 20 41 2e |X11; I; |HP-UX A.|
|00000220| 30 39 2e 30 35 20 39 30 | 30 30 2f 37 35 35 29 0a |09.05 90|00/755).|
|00000230| 0a 4e 61 73 73 65 72 20 | 41 62 62 61 73 69 20 77 |.Nasser |Abbasi w|
|00000240| 72 6f 74 65 3a 0a 3e 20 | 0a 3e 20 68 69 2c 0a 3e |rote:.> |.> hi,.>|
|00000250| 20 0a 3e 20 49 20 61 6d | 20 63 6f 6e 66 75 73 65 | .> I am| confuse|
|00000260| 64 20 61 62 6f 75 74 20 | 73 6f 6d 65 74 68 69 6e |d about |somethin|
|00000270| 67 2e 0a 3e 20 0a 3e 20 | 61 63 63 6f 72 64 69 6e |g..> .> |accordin|
|00000280| 67 20 74 6f 20 22 74 68 | 65 20 43 2b 2b 20 70 72 |g to "th|e C++ pr|
|00000290| 6f 67 72 61 6d 6d 69 6e | 67 20 6c 61 6e 67 75 61 |ogrammin|g langua|
|000002a0| 67 65 22 2c 20 42 6a 61 | 72 6e 65 20 53 74 72 6f |ge", Bja|rne Stro|
|000002b0| 75 73 74 72 75 70 0a 3e | 20 70 61 67 65 20 38 35 |ustrup.>| page 85|
|000002c0| 20 69 74 20 73 61 79 73 | 3a 0a 3e 20 22 2e 2e 54 | it says|:.> "..T|
|000002d0| 68 69 73 20 63 61 6e 20 | 62 65 20 64 6f 6e 65 20 |his can |be done |
|000002e0| 62 79 20 63 61 6c 6c 69 | 6e 67 20 65 78 69 74 28 |by calli|ng exit(|
|000002f0| 29 2c 20 77 68 69 63 68 | 20 66 69 72 73 74 20 63 |), which| first c|
|00000300| 6c 65 61 6e 20 74 68 69 | 6e 67 73 0a 3e 20 6c 69 |lean thi|ngs.> li|
|00000310| 6b 65 20 6f 75 74 70 75 | 74 20 73 74 72 65 61 6d |ke outpu|t stream|
|00000320| 73 2e 22 0a 3e 20 0a 3e | 20 49 20 74 61 6b 65 20 |s.".> .>| I take |
|00000330| 74 68 69 73 20 61 73 20 | 6d 65 61 6e 69 6e 67 20 |this as |meaning |
|00000340| 74 68 61 74 20 63 61 6c | 6c 69 6e 67 20 65 78 69 |that cal|ling exi|
|00000350| 74 28 29 20 66 72 6f 6d | 20 79 6f 75 72 20 43 2b |t() from| your C+|
|00000360| 2b 0a 3e 20 70 72 6f 67 | 72 61 6d 20 77 69 6c 6c |+.> prog|ram will|
|00000370| 20 63 61 75 73 65 20 62 | 75 66 66 65 72 73 20 74 | cause b|uffers t|
|00000380| 6f 20 62 65 20 66 6c 75 | 73 68 65 64 20 6f 75 74 |o be flu|shed out|
|00000390| 20 74 6f 20 6f 66 73 74 | 72 65 61 6d 0a 3e 20 66 | to ofst|ream.> f|
|000003a0| 69 6c 65 73 20 2e 20 77 | 65 6c 6c 2c 20 74 68 69 |iles . w|ell, thi|
|000003b0| 73 20 64 6f 65 73 20 6e | 6f 20 73 65 65 6d 20 74 |s does n|o seem t|
|000003c0| 6f 20 62 65 20 74 68 65 | 20 63 61 73 65 2c 20 74 |o be the| case, t|
|000003d0| 68 69 73 20 6c 69 74 74 | 6c 65 0a 3e 20 70 72 6f |his litt|le.> pro|
|000003e0| 67 72 61 6d 20 73 68 6f | 77 73 20 74 68 61 74 20 |gram sho|ws that |
|000003f0| 65 78 69 74 28 29 20 64 | 6f 20 6e 6f 74 20 66 6c |exit() d|o not fl|
|00000400| 75 73 68 20 64 61 74 61 | 20 74 6f 20 66 69 6c 65 |ush data| to file|
|00000410| 2e 0a 3e 20 0a 0a 5b 63 | 6f 64 65 20 65 78 61 6d |..> ..[c|ode exam|
|00000420| 70 6c 65 20 73 6e 69 70 | 70 65 64 5d 0a 0a 3e 20 |ple snip|ped]..> |
|00000430| 0a 3e 20 57 68 61 74 20 | 69 73 20 74 68 65 20 72 |.> What |is the r|
|00000440| 65 63 6f 6d 6d 65 6e 64 | 65 64 20 77 61 79 20 74 |ecommend|ed way t|
|00000450| 6f 20 74 65 72 6d 69 6e | 61 74 65 20 74 68 65 20 |o termin|ate the |
|00000460| 70 72 6f 67 72 61 6d 0a | 3e 20 61 6e 64 20 68 61 |program.|> and ha|
|00000470| 76 65 20 61 6c 6c 20 62 | 75 66 66 65 72 73 20 66 |ve all b|uffers f|
|00000480| 6c 75 73 68 65 64 20 61 | 75 74 6f 6d 61 74 69 63 |lushed a|utomatic|
|00000490| 61 6c 6c 79 20 77 69 74 | 68 6f 75 74 20 68 61 76 |ally wit|hout hav|
|000004a0| 69 6e 67 0a 3e 20 74 6f | 20 65 78 70 6c 69 63 69 |ing.> to| explici|
|000004b0| 74 79 20 63 61 6c 6c 20 | 66 6c 75 73 68 28 29 20 |ty call |flush() |
|000004c0| 6f 6e 20 65 61 63 68 20 | 6f 70 65 6e 20 73 74 72 |on each |open str|
|000004d0| 65 61 6d 20 66 69 6c 65 | 20 3f 0a 3e 20 49 73 20 |eam file| ?.> Is |
|000004e0| 74 68 69 73 20 61 20 62 | 75 67 20 6f 72 20 61 20 |this a b|ug or a |
|000004f0| 66 65 61 74 75 72 65 20 | 6f 66 20 65 78 69 74 28 |feature |of exit(|
|00000500| 29 20 3f 0a 3e 20 0a 3e | 20 74 68 61 6e 6b 73 2c |) ?.> .>| thanks,|
|00000510| 0a 3e 20 4e 61 73 73 65 | 72 0a 3e 20 41 70 70 6c |.> Nasse|r.> Appl|
|00000520| 69 65 64 20 42 69 6f 53 | 79 73 74 65 6d 73 0a 0a |ied BioS|ystems..|
|00000530| 0a 49 20 74 65 73 74 65 | 64 20 74 68 69 73 20 6f |.I teste|d this o|
|00000540| 6e 20 61 6e 20 48 50 55 | 58 20 73 79 73 74 65 6d |n an HPU|X system|
|00000550| 20 28 39 2e 30 35 29 20 | 61 6e 64 20 68 61 64 20 | (9.05) |and had |
|00000560| 74 68 65 20 73 61 6d 65 | 20 72 65 73 75 6c 74 2e |the same| result.|
|00000570| 0a 65 78 69 74 28 29 20 | 64 69 64 20 6e 6f 74 20 |.exit() |did not |
|00000580| 66 6c 75 73 68 20 74 68 | 65 20 62 75 66 66 65 72 |flush th|e buffer|
|00000590| 2c 20 72 65 74 75 72 6e | 20 64 69 64 2e 20 50 6c |, return| did. Pl|
|000005a0| 65 61 73 65 20 6c 65 74 | 20 6d 65 0a 6b 6e 6f 77 |ease let| me.know|
|000005b0| 20 69 66 20 73 6f 6d 65 | 6f 6e 65 20 68 61 73 20 | if some|one has |
|000005c0| 61 20 67 6f 6f 64 20 69 | 64 65 61 20 6f 66 20 77 |a good i|dea of w|
|000005d0| 68 61 74 20 69 73 20 67 | 6f 69 6e 67 20 6f 6e 20 |hat is g|oing on |
|000005e0| 68 65 72 65 2e 20 59 6f | 75 0a 6d 69 67 68 74 20 |here. Yo|u.might |
|000005f0| 61 6c 73 6f 20 77 61 6e | 74 20 74 6f 20 73 75 62 |also wan|t to sub|
|00000600| 6d 69 74 20 74 68 69 73 | 20 71 75 65 73 74 69 6f |mit this| questio|
|00000610| 6e 20 74 6f 20 74 68 65 | 20 63 6f 6d 70 2e 6c 61 |n to the| comp.la|
|00000620| 6e 67 2e 63 2b 2b 6d 6f | 64 65 72 61 74 65 64 0a |ng.c++mo|derated.|
|00000630| 67 72 6f 75 70 2e 20 41 | 20 6c 6f 74 20 6f 66 20 |group. A| lot of |
|00000640| 74 68 65 20 6c 61 6e 67 | 75 61 67 65 20 65 78 70 |the lang|uage exp|
|00000650| 65 72 74 73 20 77 61 74 | 63 68 20 74 68 61 74 20 |erts wat|ch that |
|00000660| 67 72 6f 75 70 2e 0a 0a | 2d 42 72 69 61 6e 20 3a |group...|-Brian :|
|00000670| 2d 29 0a | |-). | |
+--------+-------------------------+-------------------------+--------+--------+